import Skeleton from './Skeleton/index.vue'
import Slider from './Slider/index.vue'
import More from './More'
import Bread from './Bread/index.vue'
import BreadItem from './Bread/item.vue'
import City from './City/index.vue'
import Sku from './Sku'
import Numbox from './Numbox'
import Button from './Button'
import CheckBox from './CheckBox'
// Vue3中注册全局组件
const cps = [Skeleton, Slider, More, Bread, BreadItem, City, Sku, Numbox, Button, CheckBox]
export default {
  // app在Vue3中是根实例，作用：注册全局组件、指令、混入
  // 在vue2中参数是vue构造函数作用：注册全局组件、指令、过滤器、方法、混入
  install (app) {
    // app.component('Skeleton', Skeleton)
    cps.forEach(cp => {
      app.component(cp.name, cp)
    })
  }
}
